package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2023/12/12
*/
@Data
@Table(name = "tbl_staff_purchase_detail")
@NoArgsConstructor
@AllArgsConstructor
public class TblStaffPurchaseDetail extends BaseEntity {
    private String code;

    @Column(name = "staff_purchase_id")
    private String staffPurchaseId;

    @Column(name = "product_id")
    private String productId;

    private Integer quantity;

    @Column(name = "last_purchase_price")
    private BigDecimal lastPurchasePrice;

    /**
     * 原价
     */
    @Column(name = "selling_price")
    @ApiModelProperty("原价")
    private BigDecimal sellingPrice;

    /**
     * 最终单价
     */
    @Column(name = "selling_price_unit")
    @ApiModelProperty("最终单价")
    private BigDecimal sellingPriceUnit;

    /**
     * 总计
     */
    @ApiModelProperty("总计")
    private BigDecimal amount;
}